export const lineData = {
  totalValue: 124556,
  rateList: [{ name: '日环比', rate: '40%', type: 'up' }],
  chart: {
    legendList: [{ name: '指标一', value: 1222 }],
    xAxis: ['2022-06-27', '2022-06-28', '2022-06-29', '2022-06-30'],
    series: [
      {
        data: ['100', '110', '120', '139'],
        name: '男'
      },
      {
        data: ['200', '210', '220', '239'],
        name: '女'
      }
    ]
  }
};

export const areaData = {
  graphType: 'AREA',
  graphSize: 'MIDDLE',
  uuid: '7676676',
  name: 'title123',
  startTime: '2022-05-16',
  endTime: '2022-06-17',
  result: {
    totalValue: 124556,
    rateList: [{ name: '日环比', rate: '40%', type: 'up' }],
    legendList: [{ name: '当日用户数', value: 1222 }],
    chart: {
      xAxis: ['2022-06-27', '2022-06-28', '2022-06-29', '2022-06-30'],
      series: [
        {
          data: ['100', '110', '120', '139'],
          name: '男'
        },
        {
          data: ['200', '210', '220', '239'],
          name: '女'
        }
      ]
    }
  }
};

export const treeData = [
  {
    key: '1',
    title: 'aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa',
    children: [
      {
        key: '1-1',
        title: 'bbbb'
      },
      {
        key: '1-2',
        title: 'ccc'
      }
    ]
  },
  {
    key: '2',
    title: 'dddd',
    children: [
      {
        key: '2-1',
        title: 'eee'
      },
      {
        key: '2-2',
        title: 'fff'
      }
    ]
  },
  {
    key: '3',
    title: 'gggg',
    children: [
      {
        key: '3-1',
        title: 'hhhh'
      },
      {
        key: '3-2',
        title: 'iiii'
      }
    ]
  }
];

export const gagueData = {
  card: {
    cardConfig: {
      compares: [
        {
          compareName: '111',
          compareType: 'GAPVAL',
          dateCondition: {
            dateMode: 'TODAY',
            fixDate: '',
            offset: 1,
            timeUnit: 'DAY'
          }
        }
      ],
      dataTime: '',
      dateCondition: {
        dateMode: 'TODAY',
        fixDate: '',
        offset: 1,
        timeUnit: 'DAY'
      },
      distributeDimId: 0,
      metricsSetting: {
        metricsId: 96,
        metricsName: '指标名称111',
        metricsConditions: [
          {
            dimId: 67,
            dimName: '',
            fieldName: '',
            opType: '',
            values: []
          },
          {
            dimId: 68,
            dimName: '',
            fieldName: '',
            opType: '',
            values: []
          }
        ],
        numberFormat: 'GE',
        rela: 'AND',
        statisticalPeriod: {
          offset: 0,
          timeUnit: 'DAY',
          type: 'DAY'
        }
      },
      type: 'GAUGE'
    },
    name: '6666'
  },
  result: {
    totalValue: 6666,
    rateList: [{ name: '日环比', rate: '40%', type: 'up' }],
    chart: [
      { name: '完成度', value: 60, data: 80 },
      { name: 'xxxx 度', value: 40 }
    ]
  }
};
export const pieData = {
  card: {
    cardConfig: {
      compares: [
        {
          compareName: '111',
          compareType: 'GAPVAL',
          dateCondition: {
            dateMode: 'TODAY',
            fixDate: '',
            offset: 1,
            timeUnit: 'DAY'
          }
        }
      ],
      dataTime: '',
      dateCondition: {
        dateMode: 'TODAY',
        fixDate: '',
        offset: 1,
        timeUnit: 'DAY'
      },
      distributeDimId: 0,
      metricsSetting: {
        metricsId: 96,
        metricsName: '指标名称111',
        metricsConditions: [
          {
            dimId: 67,
            dimName: '',
            fieldName: '',
            opType: '',
            values: []
          },
          {
            dimId: 68,
            dimName: '',
            fieldName: '',
            opType: '',
            values: []
          }
        ],
        numberFormat: 'GE',
        rela: 'AND',
        statisticalPeriod: {
          offset: 0,
          timeUnit: 'DAY',
          type: 'DAY'
        }
      },
      type: 4
    },
    name: '苹果销售额占比'
  },
  result: {
    totalValue: 124556,
    rateList: [{ name: '日环比', rate: '40%', type: 'up' }],
    chart: [
      { name: '完成度1', value: 50 },
      { name: '时间进度1', value: 20 },
      { name: '完成度2', value: 30 },
      { name: '时间进度2', value: 10 },
      { name: '完成度3', value: 40 },
      { name: '时间进度3', value: 60 },
      { name: '完成度4', value: 70 }
    ]
  }
};

export const numberData = {
  boardConfig: {
    chosenMetricsIds: [],
    conditions: [],
    dateCondition: {
      dateMode: 'TODAY',
      fixDate: '',
      offset: 0,
      timeUnit: 'day'
    }
  },
  card: {
    cardConfig: {
      compares: [
        {
          compareName: '111',
          compareType: 'GAPVAL',
          dateCondition: {
            dateMode: 'TODAY',
            fixDate: '',
            offset: 1,
            timeUnit: 'DAY'
          }
        }
      ],
      dataTime: '',
      dateCondition: {
        dateMode: 'TODAY',
        fixDate: '',
        offset: 1,
        timeUnit: 'DAY'
      },
      distributeDimId: 0,
      metricsSetting: {
        metricsId: 96,
        metricsName: '指标名称111',
        metricsConditions: [
          {
            dimId: 15,
            dimName: '小类名称1',
            fieldName: 's_class_id',
            opType: 'IN',
            values: ['11031103', '11031106'],
            selectLabel: [
              '苦瓜',
              '丝瓜',
              '苦瓜',
              '丝瓜',
              '苦瓜',
              '丝瓜',
              '苦瓜',
              '丝瓜',
              '苦瓜',
              '丝瓜'
            ]
          },
          {
            dimId: 15,
            dimName: '小类名称1',
            fieldName: 's_class_id',
            opType: 'NOT_IN ',
            values: ['11031103', '11031105'],
            selectLabel: ['苦瓜', '萝卜']
          }
        ],
        numberFormat: 'GE',
        rela: 'AND',
        statisticalPeriod: {
          offset: 7,
          timeUnit: 'day',
          type: 'recent'
        }
      },
      result: {
        totalValue: '102411',
        rateList: [
          { name: '日环比', rate: '111111', type: 'up' },
          { name: '环比上周', rate: '40%', type: 'down' }
        ]
      },
      type: 1
    },
    name: '苹果销售额占比'
  }
};
